From 3b837f262d23a6dae580406bbe57027a919d8557 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 3 Dec 2005 09:27:50 +0000 Subject: [PATCH] * whitespace, only strip the last newline --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index d4c39976de..7679655a72 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2508,7 +2508,7 @@ class Parser # If there are any tags, only include them if ( in_string( '', $text ) && in_string( '', $text ) ) { - preg_match_all( '/\n?(.*?)\n?<\/onlyinclude>/s', $text, $m ); + preg_match_all( '/(.*?)\n?<\/onlyinclude>/s', $text, $m ); $text = ''; foreach ($m[1] as $piece) $text .= $piece; -- 2.20.1